package com.bl.service.Impl;

import com.bl.domain.Product;
import com.bl.mapper.ProductMapper;
import com.bl.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements IProductService {

    @Autowired
    private ProductMapper productMapper;

    @Override
    public void add(Product product) {
        productMapper.add(product);

    }

    @Override
    public Product getById(Long id) {
        return productMapper.loadById(id);
    }


}
